STEP 10: Let's add a loop inside the event. Commands in the loop should be have a block like this:········¬

  • Delete the command that reads: ····dancer.jump(5) from inside the event.
  • From drag Loop with Range inside the space_bar event.
  • Drag a Flip Right Left command inside the loop.
  • Change the name in front of the .flip_right_left() command to dancer.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)